package org.aplombh.java.interview.newcoder;

import java.util.Scanner;

public class HJ3_明明的随机数 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int n = in.nextInt();
            int[] ans = new int[501];

            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                ans[t] = 1;
            }
            for (int i = 1; i < 501; i++) {
                if (ans[i] == 1)
                    System.out.println(i);
            }
        }
    }
}
